gnomeos-make-image.sh: Check for some dependencies before we run
authorColin Walters <walters@verbum.org>
Wed, 26 Oct 2011 18:59:45 +0000 (14:59 -0400)
committerColin Walters <walters@verbum.org>
Wed, 26 Oct 2011 18:59:45 +0000 (14:59 -0400)
parallel-debian/gnomeos-make-image.sh

index 1fc37ab283742b9574ba1bc88bb3b8c0e81285f8..84fe38e42db7c336e0fef1dab690c97930ff2fa1 100755 (executable)
@@ -24,6 +24,15 @@ set -x
 SRCDIR=`dirname $0`
 WORKDIR=`pwd`
 
+DEPENDS="debootstrap qemu-img"
+
+for x in $DEPENDS; do
+    if ! command -v $x; then
+        echo "Couldn't find required dependency $x";
+        exit 1
+    fi
+done
+
 OSTREE=${OSTREE:-ostree}
 
 case `uname -p` in